package com.taojie.graduation.service.api;

import com.taojie.graduation.domain.Car;
import com.taojie.graduation.domain.User;
import com.taojie.graduation.utils.Result;

public interface CarService {
    Result findCarPage(int page, int size, String query);

    Result findCarById(Integer id);

    Result updateById(Car car);

    Result deleteById(Integer id);

    Result add(Car car, User user);

    Result deleteByUserId(Integer id);

    Car findByUserId(Integer id);
}
